package cloud.misiro.module.system.api.logger;

import cloud.misiro.module.system.api.logger.dto.OperateLogCreateReqDTO;
import cloud.misiro.module.system.service.logger.OperateLogService;
import cloud.misiro.module.system.service.user.AdminUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * 操作日志 API 实现类
 *
 * @author misiro
 */
@Service
@Validated
public class OperateLogApiImpl implements OperateLogApi {

    @Resource
    private OperateLogService operateLogService;

    @Resource
    private AdminUserService adminUserService;

    /**
     * 创建操作日志
     *
     * @param createReqDTO 请求
     */
    @Override
    public void createOperateLog(OperateLogCreateReqDTO createReqDTO) {
        operateLogService.createOperateLog(createReqDTO);
    }
}
